#ifndef SOUND_H_
#define SOUND_H_

#include <iostream>
#include <string>
#include <vector>
#include <cstdlib>
#include <fmod.h>
#include <time.h>

using namespace std;

class Sound {
	public:
		Sound(string *fileList, int nb, int ch = 1);
		Sound(int ch = 1);
		void addSound(string sound);
		void randPlay();
		void playNext();
		void playPrev();
		void playCurrent();
		void play(int sound = 0);

	private:
		FMOD_SYSTEM			*system;
		FMOD_RESULT			res;
		vector<FMOD_SOUND*>	sounds;
		int					channel;
		int					pos;
};

#endif
